package com.tyk.bookstore.back.system.model.query;

import com.tyk.bookstore.back.common.core.model.page.PageQuery;
import com.tyk.bookstore.back.common.core.model.type.Gender;
import com.tyk.bookstore.back.common.core.valid.annotation.CommonFieldValid;
import com.tyk.bookstore.back.common.core.valid.type.CommonFieldValidType;
import com.tyk.bookstore.back.system.model.type.UserState;
import com.tyk.bookstore.back.system.valid.annotation.UserFieldValid;
import com.tyk.bookstore.back.system.valid.type.UserFieldValidType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class UserPageQuery extends PageQuery {

    @Schema(description = "账号")
    private String account;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "姓名(模糊)")
    private String name;

    @Schema(description = "性别[0男,1女]", type = "integer")
    private Gender gender;

    @Schema(description = "用户状态[0可用,1禁用,2已注销]", type = "integer")
    private UserState state;

    @Schema(description = "创建时间: 开始时间")
    private LocalDateTime startTime;

    @Schema(description = "创建时间: 结束时间")
    private LocalDateTime endTime;

}
